.class public Lcom/xingbook/park/activity/UnbindAct;
.super Lcom/xingbook/park/activity/BaseActivity;

# interfaces
.implements Landroid/view/View$OnClickListener;


# instance fields
.field final a:Landroid/os/Handler;

.field private b:I

.field private c:J


# direct methods
.method public constructor <init>()V
    .locals 1

    invoke-direct {p0}, Lcom/xingbook/park/activity/BaseActivity;-><init>()V

    new-instance v0, Lcom/xingbook/park/activity/cc;

    invoke-direct {v0, p0}, Lcom/xingbook/park/activity/cc;-><init>(Lcom/xingbook/park/activity/UnbindAct;)V

    iput-object v0, p0, Lcom/xingbook/park/activity/UnbindAct;->a:Landroid/os/Handler;

    return-void
.end method

.method private a()V
    .locals 3

    invoke-static {}, Lcom/xingbook/c/n;->l()Lcom/xingbook/c/j;

    move-result-object v0

    invoke-virtual {v0}, Lcom/xingbook/c/j;->o()Z

    move-result v0

    if-eqz v0, :cond_0

    new-instance v0, Landroid/content/Intent;

    invoke-virtual {p0}, Lcom/xingbook/park/activity/UnbindAct;->getApplicationContext()Landroid/content/Context;

    move-result-object v1

    const-class v2, Lcom/xingbook/park/activity/GuideAct;

    invoke-direct {v0, v1, v2}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    :goto_0
    const/high16 v1, 0x400

    invoke-virtual {v0, v1}, Landroid/content/Intent;->setFlags(I)Landroid/content/Intent;

    invoke-virtual {p0, v0}, Lcom/xingbook/park/activity/UnbindAct;->startActivity(Landroid/content/Intent;)V

    invoke-virtual {p0}, Lcom/xingbook/park/activity/UnbindAct;->finish()V

    const/high16 v0, 0x7f04

    const v1, 0x7f040001

    invoke-virtual {p0, v0, v1}, Lcom/xingbook/park/activity/UnbindAct;->overridePendingTransition(II)V

    return-void

    :cond_0
    new-instance v0, Landroid/content/Intent;

    invoke-virtual {p0}, Lcom/xingbook/park/activity/UnbindAct;->getApplicationContext()Landroid/content/Context;

    move-result-object v1

    const-class v2, Lcom/xingbook/park/activity/HomeActivity;

    invoke-direct {v0, v1, v2}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    goto :goto_0
.end method

.method static synthetic a(Lcom/xingbook/park/activity/UnbindAct;)V
    .locals 0

    invoke-direct {p0}, Lcom/xingbook/park/activity/UnbindAct;->a()V

    return-void
.end method

.method private b()V
    .locals 5

    invoke-static {}, Lcom/xingbook/c/n;->l()Lcom/xingbook/c/j;

    move-result-object v0

    iget v1, p0, Lcom/xingbook/park/activity/UnbindAct;->b:I

    invoke-virtual {v0}, Lcom/xingbook/c/j;->e()I

    move-result v2

    if-eq v1, v2, :cond_0

    iget v1, p0, Lcom/xingbook/park/activity/UnbindAct;->b:I

    invoke-virtual {v0, v1}, Lcom/xingbook/c/j;->b(I)V

    invoke-static {}, Lcom/xingbook/c/n;->k()Lcom/xingbook/park/e/a;

    move-result-object v1

    const-string v2, "mid"

    iget v3, p0, Lcom/xingbook/park/activity/UnbindAct;->b:I

    invoke-static {v3}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v1, v2, v3}, Lcom/xingbook/park/e/a;->a(Ljava/lang/String;Ljava/lang/String;)V

    :cond_0
    iget-wide v1, p0, Lcom/xingbook/park/activity/UnbindAct;->c:J

    invoke-virtual {v0}, Lcom/xingbook/c/j;->d()J

    move-result-wide v3

    cmp-long v1, v1, v3

    if-eqz v1, :cond_1

    iget-wide v1, p0, Lcom/xingbook/park/activity/UnbindAct;->c:J

    invoke-virtual {v0, v1, v2}, Lcom/xingbook/c/j;->b(J)V

    invoke-static {}, Lcom/xingbook/c/n;->k()Lcom/xingbook/park/e/a;

    move-result-object v1

    const-string v2, "uid"

    iget-wide v3, p0, Lcom/xingbook/park/activity/UnbindAct;->c:J

    invoke-static {v3, v4}, Ljava/lang/String;->valueOf(J)Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v1, v2, v3}, Lcom/xingbook/park/e/a;->a(Ljava/lang/String;Ljava/lang/String;)V

    :cond_1
    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Lcom/xingbook/c/j;->a(Ljava/lang/String;)V

    new-instance v0, Landroid/app/ProgressDialog;

    invoke-direct {v0, p0}, Landroid/app/ProgressDialog;-><init>(Landroid/content/Context;)V

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Landroid/app/ProgressDialog;->setCancelable(Z)V

    const-string v1, "\u8bf7\u7a0d\u7b49..."

    invoke-virtual {v0, v1}, Landroid/app/ProgressDialog;->setMessage(Ljava/lang/CharSequence;)V

    invoke-virtual {v0}, Landroid/app/ProgressDialog;->show()V

    sget-object v1, Lcom/xingbook/c/o;->h:Ljava/util/concurrent/ExecutorService;

    new-instance v2, Lcom/xingbook/park/activity/cb;

    invoke-direct {v2, p0, v0}, Lcom/xingbook/park/activity/cb;-><init>(Lcom/xingbook/park/activity/UnbindAct;Landroid/app/ProgressDialog;)V

    invoke-interface {v1, v2}, Ljava/util/concurrent/ExecutorService;->execute(Ljava/lang/Runnable;)V

    return-void
.end method


# virtual methods
.method public e()Ljava/lang/String;
    .locals 2

    new-instance v0, Ljava/lang/StringBuilder;

    const-string v1, "\u88ab\u6ce8\u9500\u63d0\u793a"

    invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method public onClick(Landroid/view/View;)V
    .locals 2

    invoke-virtual {p1}, Landroid/view/View;->getId()I

    move-result v0

    const/4 v1, 0x1

    if-ne v0, v1, :cond_0

    invoke-direct {p0}, Lcom/xingbook/park/activity/UnbindAct;->b()V

    :cond_0
    return-void
.end method

.method protected onCreate(Landroid/os/Bundle;)V
    .locals 14

    const/4 v13, -0x1

    const/high16 v12, 0x4238

    const/high16 v9, 0x41a0

    const/4 v2, 0x1

    const/4 v1, 0x0

    invoke-super {p0, p1}, Lcom/xingbook/park/activity/BaseActivity;->onCreate(Landroid/os/Bundle;)V

    invoke-virtual {p0}, Lcom/xingbook/park/activity/UnbindAct;->getIntent()Landroid/content/Intent;

    move-result-object v0

    invoke-virtual {v0}, Landroid/content/Intent;->getExtras()Landroid/os/Bundle;

    move-result-object v0

    if-eqz v0, :cond_0

    const-string v3, "com.xingbook.park.EXTRA_MID_AFTERUNBIND"

    invoke-virtual {v0, v3, v1}, Landroid/os/Bundle;->getInt(Ljava/lang/String;I)I

    move-result v3

    iput v3, p0, Lcom/xingbook/park/activity/UnbindAct;->b:I

    const-string v3, "com.xingbook.park.EXTRA_UID_AFTERUNBIND"

    const-wide/16 v4, 0x0

    invoke-virtual {v0, v3, v4, v5}, Landroid/os/Bundle;->getLong(Ljava/lang/String;J)J

    move-result-wide v3

    iput-wide v3, p0, Lcom/xingbook/park/activity/UnbindAct;->c:J

    :cond_0
    new-instance v6, Lcom/xingbook/ui/XbLayout;

    invoke-direct {v6, p0}, Lcom/xingbook/ui/XbLayout;-><init>(Landroid/content/Context;)V

    const v0, -0x141415

    invoke-virtual {v6, v0}, Lcom/xingbook/ui/XbLayout;->setBackgroundColor(I)V

    invoke-virtual {v6, v2}, Lcom/xingbook/ui/XbLayout;->setScrollContainer(Z)V

    invoke-virtual {v6, v2}, Lcom/xingbook/ui/XbLayout;->setVerticalScrollBarEnabled(Z)V

    new-instance v0, Lcom/xingbook/ui/t;

    const/4 v3, 0x0

    invoke-direct {v0, p0, v3}, Lcom/xingbook/ui/t;-><init>(Landroid/app/Activity;Lcom/xingbook/ui/x;)V

    const-string v3, "\u53cb\u60c5\u63d0\u793a"

    iput-object v3, v0, Lcom/xingbook/ui/t;->c:Ljava/lang/String;

    iput-boolean v1, v0, Lcom/xingbook/ui/t;->f:Z

    const v3, -0xe64c12

    invoke-virtual {v0, v3}, Lcom/xingbook/ui/t;->setBackgroundColor(I)V

    invoke-static {p0}, Lcom/xingbook/c/n;->c(Landroid/app/Activity;)I

    move-result v3

    sget v4, Lcom/xingbook/ui/t;->b:I

    invoke-virtual {v0, v1, v1, v3, v4}, Lcom/xingbook/ui/t;->layout(IIII)V

    invoke-virtual {v6, v0}, Lcom/xingbook/ui/XbLayout;->addView(Landroid/view/View;)V

    invoke-static {p0}, Lcom/xingbook/c/n;->f(Landroid/app/Activity;)F

    move-result v3

    const/high16 v0, 0x42c8

    mul-float/2addr v0, v3

    invoke-static {v0}, Ljava/lang/Math;->round(F)I

    move-result v7

    mul-float v0, v9, v3

    invoke-static {v0}, Ljava/lang/Math;->round(F)I

    move-result v8

    mul-float v0, v9, v3

    invoke-static {v0}, Ljava/lang/Math;->round(F)I

    move-result v0

    sget v4, Lcom/xingbook/ui/t;->b:I

    add-int/2addr v4, v0

    invoke-static {p0}, Lcom/xingbook/c/n;->c(Landroid/app/Activity;)I

    move-result v5

    sub-int v9, v5, v8

    invoke-static {p0}, Lcom/xingbook/c/n;->d(Landroid/app/Activity;)I

    move-result v5

    sub-int/2addr v5, v7

    sub-int v10, v5, v0

    new-instance v0, Landroid/widget/TextView;

    invoke-direct {v0, p0}, Landroid/widget/TextView;-><init>(Landroid/content/Context;)V

    new-instance v5, Ljava/lang/StringBuilder;

    invoke-direct {v5}, Ljava/lang/StringBuilder;-><init>()V

    const-string v11, "<p>\u2606 \u60a8\u7684\u8d26\u53f7\u5df2\u7ecf\u5728\u5176\u4ed6\u7ec8\u7aef\u4e0a\u767b\u5f55\uff0c\u4e3a\u4e86\u60a8\u7684\u8d26\u53f7\u5b89\u5168\u8bf7\u91cd\u65b0\u767b\u5f55\u540e\u53ca\u65f6\u4fee\u6539\u5bc6\u7801\uff01"

    invoke-virtual {v5, v11}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    const-string v11, "</p>"

    invoke-virtual {v5, v11}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    invoke-virtual {v5}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v5

    invoke-static {v5}, Landroid/text/Html;->fromHtml(Ljava/lang/String;)Landroid/text/Spanned;

    move-result-object v5

    invoke-virtual {v0, v5}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    sub-int v5, v9, v8

    invoke-virtual {v0, v5}, Landroid/widget/TextView;->setWidth(I)V

    sub-int v5, v10, v4

    invoke-virtual {v0, v5}, Landroid/widget/TextView;->setHeight(I)V

    const/16 v5, 0x13

    invoke-virtual {v0, v5}, Landroid/widget/TextView;->setGravity(I)V

    new-instance v5, Landroid/view/ViewGroup$LayoutParams;

    const/4 v11, -0x2

    invoke-direct {v5, v11, v13}, Landroid/view/ViewGroup$LayoutParams;-><init>(II)V

    invoke-virtual {v0, v5}, Landroid/widget/TextView;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    const v5, -0x99999a

    invoke-virtual {v0, v5}, Landroid/widget/TextView;->setTextColor(I)V

    mul-float v5, v12, v3

    invoke-virtual {v0, v1, v5}, Landroid/widget/TextView;->setTextSize(IF)V

    invoke-virtual {v0, v8, v4, v9, v10}, Landroid/widget/TextView;->layout(IIII)V

    invoke-virtual {v6, v0}, Lcom/xingbook/ui/XbLayout;->addView(Landroid/view/View;)V

    new-instance v0, Lcom/xingbook/ui/ad;

    invoke-direct {v0, p0}, Lcom/xingbook/ui/ad;-><init>(Landroid/content/Context;)V

    invoke-virtual {v0, v2}, Lcom/xingbook/ui/ad;->setId(I)V

    invoke-virtual {v0, p0}, Lcom/xingbook/ui/ad;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    const/high16 v4, 0x4120

    iput v4, v0, Lcom/xingbook/ui/ad;->j:F

    const-string v4, "\u6211\u77e5\u9053\u4e86"

    iput-object v4, v0, Lcom/xingbook/ui/ad;->a:Ljava/lang/String;

    mul-float/2addr v3, v12

    iput v3, v0, Lcom/xingbook/ui/ad;->c:F

    iput v13, v0, Lcom/xingbook/ui/ad;->b:I

    const/4 v3, 0x0

    iput-object v3, v0, Lcom/xingbook/ui/ad;->f:Ljava/lang/String;

    const v3, -0x33ffec

    iput v3, v0, Lcom/xingbook/ui/ad;->i:I

    const/16 v3, 0x11

    iput v3, v0, Lcom/xingbook/ui/ad;->d:I

    move v3, v2

    move v4, v2

    move v5, v2

    invoke-virtual/range {v0 .. v5}, Lcom/xingbook/ui/ad;->a(IIIII)V

    iput v1, v0, Lcom/xingbook/ui/ad;->l:I

    const v1, -0xff9934

    invoke-virtual {v0, v1}, Lcom/xingbook/ui/ad;->setHilighted(I)V

    add-int v1, v10, v7

    invoke-virtual {v0, v8, v10, v9, v1}, Lcom/xingbook/ui/ad;->layout(IIII)V

    invoke-virtual {v6, v0}, Lcom/xingbook/ui/XbLayout;->addView(Landroid/view/View;)V

    invoke-virtual {p0, v6}, Lcom/xingbook/park/activity/UnbindAct;->setContentView(Landroid/view/View;)V

    return-void
.end method

.method public onKeyDown(ILandroid/view/KeyEvent;)Z
    .locals 1

    const/4 v0, 0x4

    if-ne p1, v0, :cond_0

    invoke-direct {p0}, Lcom/xingbook/park/activity/UnbindAct;->b()V

    const/4 v0, 0x1

    :goto_0
    return v0

    :cond_0
    invoke-super {p0, p1, p2}, Lcom/xingbook/park/activity/BaseActivity;->onKeyDown(ILandroid/view/KeyEvent;)Z

    move-result v0

    goto :goto_0
.end method

.method protected onPause()V
    .locals 1

    invoke-super {p0}, Lcom/xingbook/park/activity/BaseActivity;->onPause()V

    invoke-static {p0}, Lcom/baidu/mobstat/StatService;->onPause(Landroid/content/Context;)V

    invoke-virtual {p0}, Lcom/xingbook/park/activity/UnbindAct;->j()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Lcom/a/a/g;->b(Ljava/lang/String;)V

    invoke-static {p0}, Lcom/a/a/g;->a(Landroid/content/Context;)V

    return-void
.end method

.method protected onResume()V
    .locals 1

    invoke-super {p0}, Lcom/xingbook/park/activity/BaseActivity;->onResume()V

    invoke-static {p0}, Lcom/baidu/mobstat/StatService;->onResume(Landroid/content/Context;)V

    invoke-virtual {p0}, Lcom/xingbook/park/activity/UnbindAct;->j()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Lcom/a/a/g;->a(Ljava/lang/String;)V

    invoke-static {p0}, Lcom/a/a/g;->b(Landroid/content/Context;)V

    return-void
.end method
